package com.kuang;

import com.myRule.KuangRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableDiscoveryClient
//Ribbon和Eureka整合，客户端可以根据服务id调用，不需要关心ip和 端口
//启动时加载自定义类
@RibbonClient(name = "springcloud-provider",configuration = KuangRule.class)
public class  userConsumer {
    public static void main(String[] args) {
        SpringApplication.run(userConsumer.class,args);
    }
}
